Bug fix: Build time condition to relocate RW data
authorSandrine Bailleux <[email protected]>
Wed, 24 Jun 2015 14:26:39 +0000 (15:26 +0100)
committerSandrine Bailleux <[email protected]>
Wed, 24 Jun 2015 16:19:26 +0000 (17:19 +0100)
This patch fixes the build time condition deciding whether the
read-write data should be relocated from ROM to RAM. It was incorrectly
using __DATA_ROM_START__, which is a linker symbol and not a compiler
build flag. As a result, the relocation code was always compiled out.

This bug has been introduced by the following patch:
"Rationalize reset handling code"

Change-Id: I1c8d49de32f791551ab4ac832bd45101d6934045

include/common/el3_common_macros.S

index b8a947cf3e8ea2f7e69178869d33d49eac2884ca..eb033a6e60954ec9500402496c487bdda69dfc73 100644 (file)
                bl      zeromem16
 #endif
 
-#ifdef __DATA_ROM_START__
+#if IMAGE_BL1
                ldr     x0, =__DATA_RAM_START__
                ldr     x1, =__DATA_ROM_START__
                ldr     x2, =__DATA_SIZE__